-
Notifications
You must be signed in to change notification settings - Fork 1
fix: unify timed sheet behavior for master #565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
app/src/main/java/to/bitkit/utils/timedsheets/sheets/AppUpdateTimedSheet.kt
Show resolved
Hide resolved
|
for this case, the user now have to leave the home and return to trigger the backup sheet |
|
@jvsena42 Can I review this? |
yes, was waiting for CI, but need some updates from E2E |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
Whoops... sorry, I was on previous branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tAck
approved with nit-only type of comments
| @@ -0,0 +1,21 @@ | |||
| package to.bitkit.utils.timedsheets | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we don't need another package only for this.
nit: Also, we should collectively put shared code in "shared", not utils.
nit: and lastly, I things that belong together should stay together, this global scope function is better placed in TimedSheetManager class, which should also include the TimedSheetItem definition.
|
|
||
| suspend fun shouldShow(): Boolean | ||
| suspend fun onShown() | ||
| suspend fun onDismissed() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Name should not be past tense as per callback naming best practices.
| @@ -0,0 +1,21 @@ | |||
| package to.bitkit.utils.timedsheets | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: package of all these should be .ui.sheets.* where it could be grouped into *sheets.timed if desired.
| object TimedSheetModule { | ||
|
|
||
| @Provides | ||
| fun provideTimedSheetManagerProvider(): (CoroutineScope) -> TimedSheetManager { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: do we really need a provider for this?!
Can't we maybe inherit BaseCoroutineScope?!
AFAIU delegation using by CoroutineScope(coroutineContext) is the recommended best practice
Close #497
Description
context: #554 (comment)
This branch brings the changes from #556 and #562 to a branch based on master
Preview
backup_and_high-balance.webm
notifications_and_quickpay.webm
critical_update.webm
internal_navigation.webm
QA Notes
Same tests from #562